jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Thu, 22 Jan 2026 22:15:51 +0000 (23:15 +0100)
committerMoritz Mühlenhoff <jmm@debian.org>
Thu, 22 Jan 2026 22:15:51 +0000 (23:15 +0100)
commit73dfa332d9dc934b241af89138a3e0dd81188744
tree263924a33d3e69b3f63e0a740117f351eb02f700
parentd4feac969f27b69e35afa1c7b9114d3cf8556c91
jlink: Hash of module differs to expected hash recorded in java.base

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944738
Forwarded: not-needed

The cause is the use of dh_strip_nondeterminism late in the build
process.  This reorganises the jmod files, which in turn changes their
SHA256 checksums.  This would not be a problem, except that the
checksums are saved in java.base.jmod *before* the use of
dh_strip_nondeterminism.  Performing this stripping immediately after
each jmod file is created results in the checksums being consistent
throughout.

Gbp-Pq: Name reproducible-build-jmod.diff
make/CreateJmods.gmk